<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />
  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="dokuwiki export">

<p>
<em>Translations of this page are also available in the following languages:</em> <a href="geda-gschem_warmup.ru.html" class="wikilink1" title="geda-gschem_warmup.ru.html">Русский</a>.
</p>

<h1 class="sectionedit1"><a name="gschem_warmup_for_beginners" id="gschem_warmup_for_beginners">gschem Warmup for Beginners</a></h1>
<div class="level1">

<p>
You need to become familiar with doing a few things in <em><strong>gschem</strong></em>, so just run <em><strong>gschem</strong></em> and start playing around:
</p>

<p>
You get an initial page with menus and a toolbar at the top. As you select operations from the menus, notice that there are usually keyboard shortcuts which can alternatively be used to access the menu functions.
</p>

<p>
<a href="media/geda/warmup_gschem.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_gschem.png"><img src="media/geda/warmup_gschem.png" class="mediacenter" alt="" /></a>
</p>

<p>
Look at the page and you will see that it contains a title-block.
When drawing a schematic, it&#039;s a good idea to always start by
setting some schematic boundaries to draw within. This is why the
title-block is added every time you start <em><strong>gschem</strong></em> to create
a new schematic.
</p>

<p>
Try to zoom in and out the page:
</p>
<ul>
<li class="level1"><div class="li"> Use keyboard shortcut <kbd>Z</kbd> to zoom in and <kbd>Shift</kbd>+<kbd>Z</kbd> to zoom out (or select from menu <strong>View→Zoom In</strong> or <strong>View→Zoom Out</strong>). Notice that as you press a key or a key sequence it is displayed in the status bar at the bottom. Notice also that as you zoom in or zoom out the viewable area centers around the mouse cursor.</div>
</li>
<li class="level1"><div class="li"> Roll the mouse wheel first without and then with pressing one of the keys <kbd>Shift</kbd> or <kbd>Control</kbd> to see how to zoom or pan the page.</div>
</li>
<li class="level1"><div class="li"> With the mouse in the <em><strong>gschem</strong></em> drawing area, hit the keys <kbd>V</kbd><kbd>E</kbd> (or select from menu <strong>View→Zoom Extents</strong>) to zoom the view to the title-block symbol extents.</div>
</li>
</ul>

<p>
I find that using the default B sized title-block lets my
schematics print at a nice size on letter sized paper, but let&#039;s
suppose you don&#039;t like it, so you need to remove the old
title-block and replace it with another one:
</p>
<ul>
<li class="level1"><div class="li"> Zoom the page to see the whole title-block.</div>
</li>
<li class="level1"><div class="li"> Position the mouse pointer at the bottom left of the title-block, then press the left mouse button and drag the mouse to select it.</div>
</li>
<li class="level1"><div class="li"> Hit the <kbd>E</kbd> <kbd>Shift</kbd>+<kbd>L</kbd> shortcut (or select <strong>Edit→Unlock</strong> from menu) to unlock and <kbd>D</kbd> or <kbd>Delete</kbd> to delete the title-block.</div>
</li>
<li class="level1"><div class="li"> Bring up the <strong>Select Component</strong> window by selecting from the menu <strong>Add→Component</strong> or hit keyboard shortcut <kbd>I</kbd>. Or you could click the add component icon on the toolbar (<a href="media/geda/warmup_add_component.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_add_component.png"><img src="media/geda/warmup_add_component.png" class="media" alt="" /></a>).</div>
</li>
<li class="level1"><div class="li"> In the <strong>Libraries</strong> list, select <strong>Titleblocks (generic)</strong>.</div>
</li>
<li class="level1"><div class="li"> Left click on the little triangle at the left or just double click the library name to open its component list.</div>
</li>
<li class="level1"><div class="li"> Select <strong>title-A.sym</strong>.</div>
</li>
<li class="level1"><div class="li"> Move the mouse onto the <em><strong>gschem</strong></em> drawing area and place the title-block symbol by clicking the left mouse button. Then click the right mouse button to abort adding more title-block symbols.</div>
</li>
</ul>

<p>
Let&#039;s add some components on the page and try to move them around:
</p>
<ul>
<li class="level1"><div class="li"> Back in the select components window, (bring it up again if you closed it), select the <strong>Basic devices</strong> library and then select the component <strong>resistor-1.sym</strong> and place a couple of resistors on the schematic with the left mouse button.</div>
</li>
<li class="level1"><div class="li"> Right click to abort adding more resistors.</div>
</li>
<li class="level1"><div class="li"> Left click on one of the resistors to select it. Notice that it is now an orange color and that indicates it is selected.</div>
</li>
<li class="level1"><div class="li"> Left click again anywhere to deselect it.</div>
</li>
<li class="level1"><div class="li"> Alternate left clicking on both resistors to select them, but notice that if you don&#039;t hit the resistor just right, the title-block is selected instead. We really don&#039;t want to ever select the title-block again, so we can lock it to prevent its irritating selection: click so the title-block IS selected, then select <strong>Edit→Lock</strong> or hit keyboard shortcut <kbd>E</kbd><kbd>L</kbd>. Now it&#039;s easier to select the resistors as we like.</div>
</li>
<li class="level1"><div class="li"> Move the resistors around with the left mouse button.</div>
</li>
<li class="level1"><div class="li"> Select a resistor and then rotate with the <kbd>E</kbd><kbd>R</kbd> keys or the <strong>Edit→Rotate 90 Mode</strong>. Notice that it is rotated around the mouse pointer position. If you rotate from menu you have to define the rotation center position by clicking on it. If you don&#039;t see where the rotated component is, hit again <kbd>V</kbd><kbd>E</kbd> to zoom to the schematic extents.</div>
</li>
<li class="level1"><div class="li"> Hit <kbd>U</kbd> or <kbd>Ctrl</kbd>+<kbd>Z</kbd> to undo the last action and <kbd>Ctrl</kbd>+<kbd>Y</kbd> to redo it again.</div>
</li>
<li class="level1"><div class="li"> Move the resistors relatively close together and then zoom in on them.</div>
</li>
</ul>

<p>
<a href="media/geda/warmup_resistors_1.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_resistors_1.png"><img src="media/geda/warmup_resistors_1.png" class="mediacenter" alt="" /></a>
</p>

<p>
Now we can add some nets:
</p>
<ul>
<li class="level1"><div class="li"> Place the mouse on one of the resistor pins and hit the <kbd>N</kbd> key or click the add net icon on the toolbar (<a href="media/geda/warmup_net.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_net.png"><img src="media/geda/warmup_net.png" class="media" alt="" /></a>) to start adding a net.</div>
</li>
<li class="level1"><div class="li"> Move the mouse to a pin on the other resistor and you will see a small circle indicating the place the net will snap. The circle is visible only in magnetic mode which is enabled by default.</div>
</li>
</ul>

<p>
<a href="media/geda/warmup_resistors_2.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_resistors_2.png"><img src="media/geda/warmup_resistors_2.png" class="mediacenter" alt="" /></a>
</p>
<ul>
<li class="level1"><div class="li"> Left click to attach the net to the pin.</div>
</li>
<li class="level1"><div class="li"> Move the mouse slightly and you will see a new net following the mouse cursor. Right click to abort adding new nets.</div>
</li>
</ul>

<p>
Look at the toolbar and see that your mode has switched to adding nets. Before you can change resistor selections again, you will have to re-enter select mode with the <kbd>S</kbd> key or by clicking the select toolbar icon (<a href="media/geda/warmup_select.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_select.png"><img src="media/geda/warmup_select.png" class="media" alt="" /></a>) or by using the menu <strong>Edit→Select Mode</strong>. You will have to play with doing things to get used to the <em><strong>gschem</strong></em> modes.
</p>

<p>
If when you added the net between the resistors you get something that looks like this:
<a href="media/geda/warmup_resistors_3.png?id=geda%3Agschem_warmup" class="media" title="geda:warmup_resistors_3.png"><img src="media/geda/warmup_resistors_3.png" class="mediacenter" alt="" /></a>
it means you missed the pin on the right resistor. The square cue on the end of the pin shows its connectible point and you must start and stop nets with the mouse on this red spot to make a connection to the pin. To correct this:
</p>
<ul>
<li class="level1"><div class="li"> Select the net between the resistors and delete it with the <kbd>Delete</kbd> key.</div>
</li>
<li class="level1"><div class="li"> Switch again to net mode and try to connect the resistors once more.</div>
</li>
</ul>

<p>
Now let&#039;s play with attributes:
</p>
<ul>
<li class="level1"><div class="li"> Select a resistor and hit the <kbd>E</kbd><kbd>E</kbd> keys. This will pop up the attribute editing window for the resistor. Here you can change existing attribute values or add new attributes with values to the resistor. Practice well with adding attributes and changing attribute values because you will need to be very familiar with managing attributes when using <em><strong>gschem</strong></em>.</div>
</li>
</ul>

<p>
Now go back to <a href="geda-gsch2pcb_tutorial.html" class="wikilink1" title="geda-gsch2pcb_tutorial.html">the tutorial</a> and try working through the simple example there. If you encounter steps that aren&#039;t clear, look through the <em><strong>gschem</strong></em> <a href="geda-gschem_ug.html" class="wikilink1" title="geda-gschem_ug.html">user documentation</a> and attributes documentation. Other <em><strong>gschem</strong></em> documentation can be found on the <a href="geda-documentation.html" class="wikilink1" title="geda-documentation.html">gEDA Documentation</a> page.
</p>
<hr />

<p>
tutorial by Bill Wilson (billw–at–gkrellm.net)
</p>

</div>
<!-- EDIT1 SECTION "gschem Warmup for Beginners" [116-] --></div>
</body>
</html>
